<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:cc="http://java.sun.com/jsf/composite"
	xmlns:h="http://java.sun.com/jsf/html">


	<cc:interface>
		<cc:attribute name="usernameLabel" required="true" />
		<cc:attribute name="usernameValue" required="false" />
		<cc:attribute name="passwordVLabel" required="true" />
		<cc:attribute name="passwordValue" required="false" />
		
		<cc:attribute name="loginButtonLabel" required="false" default="Login"/>
		<cc:attribute name="loginButtonAction" method-signature="java.lang.String login()" />
<!-- 		<cc:attribute name="action" required="true" target="java.lang.String login()" /> -->
<!-- 		<cc:actionSource name="login" /> -->

	</cc:interface>
	<cc:implementation>
		<h:form action="#" method="post" id="sendeRegistrierung">
			

			<div class="formblock">
				<fieldset>
					<div class="row">
						<h:outputLabel for="username" value="#{cc.attrs.usernameLabel}" />
						<h:inputText id="username"  value="#{cc.attrs.usernameValue}" />
					</div>
					<div class="row">
						<h:outputLabel for="password" value="#{cc.attrs.passwordLabel}" />
						<h:inputSecret id="password" value="#{cc.attrs.passwordValue}" />

					</div>
				</fieldset>
			</div>


			<div id="buttons">
 				<h:commandButton binding="#{loginController.loginButton}" id="loginButton" accesskey="l" action="#{cc.attrs.loginButtonAction}" value="#{cc.attrs.loginButtonLabel}" rendered="true" />
 				<h:message for="loginButton" class="errorMessage"/>
			</div>
		</h:form>
	</cc:implementation>

</html>